import { Commit } from "vuex";
interface ILabel {
  title: string | undefined;
  type: number | undefined;
}
interface ILists {
  imgRul: string;
  d_title: string;
  price: string;
  oringinal: string;
  sales: string;
  comment: string;
  num: string;
  token: string;
  shopId: string;
}

interface IState {
  shoplist: ILists[];
}

interface IList {
  namespaced: boolean;
  state: IState;
  actions: {
    getshop: (
      { commit }: { commit: Commit },
      {
        params,
      }: {
        params: {
          token: string;
        };
      }
    ) => void;
  };
  mutations: {
    GET_LISTS: (state: IState, { payload }: { payload: ILists[] }) => void;
  };
}

export { IList, ILists };
